/**
 * Created by Allen on 2018/2/27.
 */

import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {_HttpClient} from "@delon/theme";
import {NzMessageService} from "ng-zorro-antd";

@Component({
    selector: 'wait-pay',
    templateUrl: './wait-pay.component.html',
    styleUrls: [ './wait-pay.component.less'],
    encapsulation: ViewEncapsulation.Emulated
})
export class WaitPayComponent implements OnInit{

    constructor(private http: _HttpClient, public msg: NzMessageService) {

    }

    todoData: any[] = [
        {startDate: '2018-01-25',
            endDate: '2018-03-25',
            title: '2018年浙商大食品&共管学院十佳歌手比赛',
            copName: '苏立生',
            company: '昆明南天电脑系统有限公司',
            department: '创业研发部',
            phone: '0871-8767666',
            amount: 20000},
        {startDate: '2018-02-15',
            endDate: '2018-03-21',
            title: '云南大学 校友助力计划',
            copName: '王珂',
            company: '云南南天信息产业股份有限公司',
            department: '业务发展部',
            phone: '0871-8767666',
            amount: 50000},
        {startDate: '2018-02-03',
            endDate: '2018-02-04',
            title: '云南财经大学足球院际杯',
            copName: 'Allen',
            company: '云南白药股份有限公司',
            department: '公关部',
            phone: '0871-8767666',
            amount: 3000}
    ];
modalTitle:any;
modalAmount:any;

    ngOnInit() {
    }

    isVisible = false;

    showModal (modalTitle, modalAmount) {
        this.modalTitle = modalTitle;
        this.modalAmount = modalAmount;
        this.isVisible = true;
    }

    handleOk = (e) => {
        console.log('点击了确定');
        this.isVisible = false;
    }

    handleCancel = (e) => {
        console.log(e);
        this.isVisible = false;
    }

}
